{% assign checkinperson = Person.Id | PersonById %}

{% capture usedmobile %}
    {[ usedmobilecheckin primaryaliasid:'{{ checkinperson.PrimaryAliasId }}' ]}
{% endcapture %}

{% if usedmobile contains '1' %}
   {{ Person.SecurityCode }}
{% endif %}